package com.example.myapplication.cutvideo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.example.myapplication.R
import com.example.myapplication.databinding.ActivityMarkFriendBinding
import com.example.myapplication.databinding.ActivityPlayBinding

/**
 * @author: rongfeng
 * @date: 2023/1/6
 * @description
 */
class PlayActivity : AppCompatActivity()  {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val binding: ActivityPlayBinding= DataBindingUtil.setContentView(
            this, R.layout.activity_play)
        binding.video.setVideoPath(cacheDir.absolutePath+"/test.mp4")
        binding.video.start()
    }
}